package com.xunsiya.module.persons.dao;

import com.xunsiya.module.persons.vo.Persons;
import com.xunsiya.module.persons.vo.PersonsImage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 人物图片dao
 *
 * @author panjun
 * @version 1.0
 *          <p>
 *          <p>修订人		修订时间			描述信息
 *          <p>-----------------------------------------------------
 *          <p>panjun		2018/11/2		初始创建
 */
public interface PersonsImageMapper {

    /**
     * 查询人物图片
     * @param personsImage
     * @return
     */
    public List<PersonsImage> findList(PersonsImage personsImage);

    /**
     * 添加图片
     * @param personsImage
     * @return
     */
    public boolean insert(PersonsImage personsImage);

    /**
     * 删除图片
     * @param personsImage
     * @return
     */
    public boolean delete(PersonsImage personsImage);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    public PersonsImage queryById(@Param("id") int id);

}
